package com.example.juc;

import java.util.concurrent.TimeUnit;

public class Test {
    public static void main(String[] args) throws InterruptedException {
        System.out.println(Runtime.getRuntime().availableProcessors()); // 获取cpu核数
        TimeUnit.SECONDS.sleep(1);
    }
}
